package com.hm.jiaowuxitong.service;
import com.hm.jiaowuxitong.dao.AdminDaoImp;
import com.hm.jiaowuxitong.dao.IAdminDao;

import java.util.List;
import java.util.Map;

public class AdminServiceImp implements IAdminService {
    IAdminDao dao=new AdminDaoImp();
    @Override
    public List<Map<String, Object>> HgetUser(String id) {
        return dao.HselectAdmin(id);
    }

    @Override
    public int HaddAdmin(Map<String, Object> oMap) {
        return dao.HinsertAdmin(oMap);
    }

    @Override
    public int ChangeAdminPassword(Map<String, Object> oMap) {return dao.ChangeAdminPassword(oMap);}
}